package com.liml.demo0319.basic.collection.stack;

import com.liml.demo0319.basic.entity.Student;
import org.springframework.util.Assert;

import java.util.Stack;

public class StackDemo01 {

    public static void main(String[] args) {
        int top = 0;
        System.out.println(top ++); // 0
        System.out.println(top); // 1
        System.out.println(++ top); // 2
        Assert.isTrue(top==2,"测试 ++ 前后区别");
        Assert.isTrue(top!=2,"测试 ++ 前后");

        Stack stack = new Stack<Student>();



    }
}
